package com.youlai.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.system.common.base.BaseQuery;
import com.youlai.system.model.entity.SysExam;
import com.youlai.system.model.query.ExamPageQuery;
import com.youlai.system.model.vo.DegreeCountVO;
import com.youlai.system.model.vo.DeptDegreeCountVO;
import com.youlai.system.model.vo.ExamExportVO;
import com.youlai.system.model.vo.ExamPageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysExamMapper extends BaseMapper<SysExam> {

    Page<ExamPageVO> getExamPage(Page<ExamPageVO> page, ExamPageQuery queryParams);

    List<ExamPageVO> getExamList(@Param("queryParams") ExamPageQuery queryParams);

    List<ExamExportVO> listExportExams(@Param("queryParams") ExamPageQuery queryParams);

    List<DegreeCountVO> getAllDegreeContList(BaseQuery baseQuery);

    List<DeptDegreeCountVO> getDeptDegreeCountList();
}
